package cn.school.sys.entity;


import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_term_time")
public class TermTime implements Serializable {

  private static final long serialVersionUID = 5218104833573266057L;

  @TableId
  private Long id;
  private String remarks;
  private Date createTime;
  private Date modifyTime;
  private Short tetiBeginYear;
  private Short tetiEndYear;
  private Short tetiTerm; //学期
  private Date tetiTermBeginDate;
  private Date tetiTermEndDate;
  @TableField(exist = false)
  private boolean isCurrent; //是当前时间对应的学期
  /**
   * 默认租户为当前登录人的租户
   */
  private String tenantId = SysUserUtils.getSysUser().getTenantId();
}
